package com.sojson.util.security.springsecurity.service.impl;

import com.sojson.config.condition.MyConfigurationCondition;
import com.sojson.constant.ConstantByMap;
import com.sojson.enums.core.EEnvironmentType;
import com.sojson.util.security.springsecurity.service.IAnnotationService;

/**
 * 测试环境权限验证
 *
 * @author liu
 * @date 2021-04-28
 */
public class SecurityTestConditio extends MyConfigurationCondition {

    @Override
    public boolean matches() {
        return IAnnotationService.isEnabled && ConstantByMap.ENVIRONMENT == EEnvironmentType.TEST.getCode();
    }

}